package org.jeecg.modules.golf.plan.client;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.golf.document.entity.PDFDocument;
import org.jeecg.modules.golf.plan.entity.PlanTypeMapping;
import org.jeecg.modules.golf.question.entity.QuestionTypeMapping;
import org.jeecg.modules.golf.tag.entity.TagMapping;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 方案
 * @Author: jeecg-boot
 * @Date:   2020-10-20
 * @Version: V1.0
 */
@Data
@ApiModel(value="planPage对象", description="方案")
public class PlanPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
	private Long id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private  Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private String sysOrgCode;
	/**标题*/
	@Excel(name = "标题", width = 15)
	@ApiModelProperty(value = "标题")
	private String title;
	/**描述*/
	@Excel(name = "描述", width = 15)
	@ApiModelProperty(value = "描述")
	private String description;
	/**附件*/
	@Excel(name = "附件", width = 15)
	@ApiModelProperty(value = "附件")
	private String attachmentUrl;
	/**视频*/
	@Excel(name = "视频", width = 15)
	@ApiModelProperty(value = "视频")
	private String vedioUrl;
	/**大图*/
	@Excel(name = "大图", width = 15)
	@ApiModelProperty(value = "大图")
	private String imgUrl;

	@ExcelCollection(name="问题分类方案关联表")
	@ApiModelProperty(value = "问题分类方案关联表")
	private List<QuestionTypeMapping> questionTypeMappingList;
	@ExcelCollection(name="方案分类方案关联")
	@ApiModelProperty(value = "方案分类方案关联")
	private List<PlanTypeMapping> planTypeMappingList;

	@ExcelCollection(name="标签关联")
	@ApiModelProperty(value = "标签关联")
	private List<TagMapping> tagMappingList;

	/**
	 * 方案分类
	 */
	private String planTypeJoin;


	private List<PDFDocument> pdfDocumentList;

}
